
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<jsp:include page = "../../metadatosPopUp.jsp" flush = "True" />
<html>
    <head>
        <title>Catalogo de Productos</title>
        <script>
            function enCeros() {
                alert("TIENE QUE INGRESAR AL MENOS UN CONCEPTO DE COMPRA PARA PODER ENVIAR LA ORDEN ");
            }
        </script>
    </head>
    <body>
        <div class="wrapper">
            <header class="header">
            </header>
            <main class="content">
                <form method="post" class="formee" action="./PuntoVenta?action=nuevoProducto&index=2">
                    <fieldset >
                        <legend>Producto</legend>

                        <c:if test="${principalTPV.nErrores>0}">
                            <div class="formee-msg-error">
                                <h3>Incidencias:</h3>
                                <ul>
                                    <c:forEach items="${principalTPV.errores}" var="e">
                                        <li><c:out value="${e}"/></li>
                                        </c:forEach>
                                </ul>
                            </div>
                        </c:if>

                        <div class="grid-12-12">    
                            <label>CODIGO DE BARRAS<em class="formee-req">*</em></label>
                            <input type="text" name="cb"  autofocus="yes"  onKeyup="this.value = txtalfanum(this.value)" value="" />
                        </div>

                        <div class="grid-12-12">    
                            <label>DESCRIPCION<em class="formee-req">*</em></label>
                            <textarea name="descripcion" onKeyup="this.value = txtalfanum(this.value)"></textarea>
                        </div>

                        <div class="grid-12-12">    
                            <label>UNIDAD DE MEDIDA<em class="formee-req">*</em></label>
                            <select name="um">
                                <option value="0">Seleccione Una Opcion</option>
                                <option value="1">Piezas (bolsas botellas empaques)</option>
                                <option value="2">Granel (Kilos)</option>
                            </select>
                        </div>

                        <div class="grid-12-12">    
                            <label>PROVEEDOR<em class="formee-req">*</em></label>
                            <input type="text" name="proveedor"  autofocus="yes"  onKeyup="this.value = txtalfanum(this.value)" value="" />
                        </div>

                        <div class="grid-6-12">    
                            <label>COSTO UNITARIO<em class="formee-req">*</em></label>
                            <input type="text" name="costo"  autofocus="yes"  onKeyup="this.value = vdoble(this.value)" value="" />
                        </div>

                        <div class="grid-6-12">    
                            <label>PRECIO PUBLICO<em class="formee-req">*</em></label>
                            <input type="text" name="precioPublico"  autofocus="yes"  onKeyup="this.value = vdoble(this.value)" value="" />
                        </div>

                        <div class="grid-12-12">    
                            <label>UBICACION<em class="formee-req">*</em></label>
                            <textarea name="ubicacion" onKeyup="this.value = txtalfanum(this.value)"></textarea>
                        </div>

                        <div class="grid-12-12">    
                            <label>Tipo Producto<em class="formee-req">*</em></label>
                            <select name="tipo">
                                <option value="1">Mercancias</option>
                            </select>
                        </div>

                        <div class="grid-12-12">    
                            <input type="submit" value="Guardar"/>
                        </div>

                    </fieldset>
                </form>
            </main>
    </body>
</html>

